import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class Test06{
    public static void main(String[] args) throws IOException {
          InputStream inputStream=new FileInputStream("D:\\Users\\34866\\Desktop\\java\\XueXi\\day31\\a.txt");
          OutputStream outputStream=new FileOutputStream("D:\\Users\\34866\\Desktop\\java\\XueXi\\day31\\b.txt");
        int r;
        while((r = inputStream.read())!=-1){
          outputStream.write(r);
        }
          inputStream.close();
          outputStream.close();
    }
}
